<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="animate.js"></script>
    <style>
        .box1 {
            position: fixed;
            top: 200px;
            right: 0;
            width: 50px;
            height: 50px;
            text-align: center;
            line-height: 40px;
            cursor: pointer;
            color: #fff;
        }

        .box2 {
            position: absolute;
            left: 0;
            top: 0;
            width: 200px;
            height: 50px;
            z-index: -1;
            background-color: rgb(0, 4, 255);
        }
    </style>
</head>

<body>
    <div class="box1">
        <span>></span>
        <div class="box2">问题反馈</div>
    </div>
    <script>
        var box1 = document.querySelector('.box1');
        var box2 = document.querySelector('.box2');
        box1.addEventListener('mouseenter', function () {
            animate(box2, -150);
        })
        box1.addEventListener('mouseleave', function () {
            animate(box2, 0);
        })
    </script>
</body>

</html>